package com.tencent.array01;

import java.util.Random;

;

/**
 * @author Mucd
 * @Date 2020/12/8/008
 * @ClassName Test
 */
public class Test {
    public static void main(String[] args) {
/*        int[] arr = new int[3];
        arr[0] = 1;
        System.out.println(arr[0]);

        //2
        int[] p = {1,23,4,4};
        System.out.println(p[2]);*/
        Random rd = new Random();

        int[] arr = new int[10];
        for (int i = 0;i<arr.length;i++) {
            int rdInt = rd.nextInt(100);
            System.out.println(arr[i] = rdInt);
        }

        }
}
